import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
testCase="DBshop005_查询订单流程"
firefox=openBrowser(url)
firefox.get(urlAdmin)
DBshopLoginAdmin(firefox)
# 1.点击销售管理订单管理界面。
DBshopEnterMenu2(firefox,'销售管理','订单管理')
# 2.在订单号查询框输入“	1668177335520002”，点击“搜索”按钮。
orderid=readFile(get_pro_rootpath()+'\public\order004.tet')
DBshopSearchOrderID(firefox,orderid)
firefox.find_element_by_xpath("//button").click()
try:
    firefox.find_element_by_xpath("//td[text()='%s']"%orderid)
    writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
firefox.quit()